package cn.ad.server.domain.ad;

import java.io.Serializable;
import java.util.Date;

/**
 * 平台对应尺寸map
 * @author wangwei
 *
 */
public class PlatformSizeMap implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8231759263461812927L;

	static final String VERSION = "0";
	static final String CACHE_NAME = "platformsizemap";
	
	private int id;
	private int platformId;
	private int sizeId;
	private int status;
	private Date createTime;
	private Date updateTime;

	public static String cacheKey(int id) {
		return new StringBuffer(CACHE_NAME).append(":").append(VERSION).append(":").append(id).toString();
	}

	public String toCacheKey() {
		return new StringBuilder(CACHE_NAME).append(":").append(VERSION).append(":").append(this.getId()).toString();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getPlatformId() {
		return platformId;
	}

	public void setPlatformId(int platformId) {
		this.platformId = platformId;
	}

	public int getSizeId() {
		return sizeId;
	}

	public void setSizeId(int sizeId) {
		this.sizeId = sizeId;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}
